(function($, UI) {

    var modal = UI.modal.dialog('<%= j render('form') %>');
    modal.show();

}(jQuery, jQuery.UIkit));